settings: Avoid one case of g_object_notify
authorMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2015 15:34:41 +0000 (11:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 7 Sep 2015 15:36:37 +0000 (11:36 -0400)
We already have the GParamSpec in hands, lets just use it instead
of looking it up again.

gtk/gtksettings.c

index 1d2166ad83e161efffd68cf19b94ec55ca43a8b5..41a17c523c2d2b740a50566213a76c7d761bf566 100644 (file)
@@ -2833,7 +2833,7 @@ _gtk_settings_handle_event (GdkEventSetting *event)
   pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (settings), event->name);
 
   if (pspec)
-    g_object_notify (G_OBJECT (settings), pspec->name);
+    g_object_notify_by_pspec (G_OBJECT (settings), pspec);
 }
 
 static void